﻿<?xml version="1.0" encoding="utf-8"?>
<Elements Id="3fc58335-b5cd-4dfe-a961-cd1cdf4bd1c9" xmlns="http://schemas.microsoft.com/sharepoint/">
  <!-- The DocComponents field is used to store the XML which shows which component documents have been
       selected and subsequently saved.  It is where the Selected treeview data get serialized too.
       There is no need for a DisplayName or Description as this field will be hidden in the intended
       Content Type-->
  <Field ID="{BA1E7364-4D6B-490a-818C-FFE529CCBD94}"
       Name="DocComponents"
       DisplayName="Document Components"  
       Group="Techardinal"
       UnlimitedLengthInDocumentLibrary="TRUE"
       DisplaceOnUpgrade="TRUE"
       Type="Note"
       Sealed="TRUE"
       RichText="FALSE"
       AllowDeletion="FALSE"
       Description="XML structure of the compound document."/>
  
  <!-- The OutFileName field allows the user to specify the default filename of the where the resulting
       compound document will be saved.  The user can embedd a {SourceFilename} tag which will be replaced
       with the filename (less extension) of the master template document.  Date and Time format strings
       can also be used which will be applied to the date/time of when the document was built. -->
  <Field ID="{941A60D0-4851-4329-ACC8-2771B9CE73A5}" 
       Name="OutFileName"
       AllowDeletion="FALSE"
       DisplayName="Default Output File"
       Group="Techardinal"
       Type="Text"
       DisplaceOnUpgrade="TRUE"
       Sealed="TRUE"
       Description="The default output file name.  You can use [SourceFilename] and date formats such as [dd-MM-yy hh:mm:ss] as parameters." />

  <!-- The ParentItem field allows the user to specify the item that will be used to specifiy the meta data
       and content type of the output file.  The UniqueId of the item i.e. the Guid is stored.  This field is
       hidden, the value being set via a drop down control in the application page-->
  <Field ID="{62AB9215-B6D8-48bf-811F-AA256B74E40B}"
       Name="MetaDataSource"
       DisplayName="Meta Data Source"
       AllowDeletion="FALSE"
       Group="Techardinal"
       Type="Text"
       DisplaceOnUpgrade="TRUE"
       Sealed="TRUE"
       Description="The unique id of the document which acts as the parent for the meta-data profile and content type."/>

  <!-- The OverwriteOutputFile field is a boolean field which is used to determine whether the output should
       overwrite an existing file of the same name.  If the field is not checked and an existing output file
       already exists in the same library folder then the save will be cancelled and a warning message sent 
       to the UI.  If checked and the output file exists and versioning is enabled in the library then a new
       document version will result, otherwise any existing file will just be overwritten -->
  <Field ID="{BB5E349D-00AC-4fd3-8090-5D7541F5FE29}"
       Name="OverwriteOutputFile"
       DisplayName="Overwrite"
       AllowDeletion="FALSE"
       Group="Techardinal"
       Type="Boolean"
       Sealed="TRUE"
       Description="When checked, any existing output file of the same name will be overriden (as a new version if versioning is enabled on the document library).">
    <Default>TRUE</Default>
  </Field>

  <!-- The OnBuildRedirect field is a choice field used to determine what should happen as a post document
       Build action, normally this results in the browser being redirected to a location specified according
       to the selected choice value-->
  <Field ID="{F914C4A6-FD65-421e-A6CE-BB460C5F1B27}"
       Name="OnBuildRedirect"
       DisplayName="On Build Redirect"
       AllowDeletion="FALSE"
       Group="Techardinal"
       Type="Choice"
       Sealed="TRUE"
       Description="Where the browser should be redirected when the Build command is executed.">
    <CHOICES>
      <CHOICE>Review Properties</CHOICE>
      <CHOICE>Open Document</CHOICE>
      <CHOICE>Go to Library</CHOICE>
      <CHOICE>Stay Here</CHOICE>
    </CHOICES>
    <Default>Review Properties</Default>
  </Field>
  
  <!-- The TargetContentType field is a choice field which will allow users to specify the target Content
       Type of the output file.  If the Content Type does not exist in the library then the standard
       Document Content Type will be used by default.  This field can be deleted in which case the default
       Content Type will always be used for the output file, although it can be changed subsequently-->
  
  <!-- Obsolete
  <Field ID="{0E22006D-7531-425a-A975-2D16A8050667}"
       Name="TargetContentType"
       DisplayName="Target Content Type"
       AllowDeletion="TRUE"
       Group="Techardinal"
       Type="Choice"
       Description="The target Content Type of the output file.  If the Content Type is not found in the library then the standard Document Content Type will be used by default.">
    <CHOICES>
      <CHOICE>Document</CHOICE>
    </CHOICES>
    <Default>Document</Default>
  </Field>
  -->
        
             
</Elements>
